package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysMt;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysMtMapper extends BaseMapper<SysMt> {
    int insertOld(String name, String email, String password, float ratio, int state);

    SysMt findByEmail(String email);

    SysMt findById(int id);

    int count();

    List<SysMt> findPage(int curRow,int pageSize);

    List<SysMt> findAll();

    int deleteByIdOld(int id);

    int updateRatio(int id,float ratio);

    int updateState(String email,int state);

    int updateHeader(int id,String header);

    int updateOld(String name, String password, String email);

}
